<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    const compose = function (...fns) {
      if (fns.length === 0) {
        return f => f
      }
      if (fns.length === 1) {
        return fns[1]
      }
      return fns.reduce((a, b) => (...args) => a(b(...args)))
    }
    function createThunkMiddleware() {
      return ({ dispatch, getState }) => next => action => {
        if (typeof action === 'function') {

        }
        return next(action)
      }
    }
  </script>
</body>

</html>
